package com.mallcloud.mall.admin.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mallcloud.mall.common.core.constant.enums.PublicTypeEnum;
import com.mallcloud.mall.common.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel(value = "SysPublicParam", description = "公共参数")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_public_param", autoResultMap = true)
public class SysPublicParam extends BaseModel {
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "公共参数编号")
	private Long publicId;

	@ApiModelProperty(value = "公共参数名称", required = true, example = "公共参数名称")
	private String publicName;

	@ApiModelProperty(value = "键[英文大写+下划线]", required = true, example = "MALL_PUBLIC_KEY")
	private String publicKey;

	@ApiModelProperty(value = "值", required = true, example = "999")
	private String publicValue;

	@ApiModelProperty(value = "标识[1有效；2无效]", example = "1")
	private String status;

	@ApiModelProperty(value = "编码", example = "^(MALL|MALL)$")
	private String validateCode;

	@ApiModelProperty(value = "是否是系统内置")
	private String systemFlag;

	/**
	 * {@link PublicTypeEnum}
	 */
	@ApiModelProperty(value = "类型", example = "1")
	private String publicType;

}
